package com.song.provider.service.impl;

import com.song.provider.dao.OrderDao;
import com.song.provider.pojo.Orders;
import com.song.provider.service.OrderService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 宋伟宁
 * @Date 2024/1/10
 * @Version 1.0
 **/
@Service
@Slf4j
public class OrderServiceImpl implements OrderService {

    @Resource
    private OrderDao orderDao;

    @Override
    public boolean createOrders(Orders orders) {
        try {
            this.orderDao.save(orders);
            return  true;
        }catch (Exception e){
             log.debug("创建订单错误！");
        }
        return false;
    }
}
